﻿using System;
using System.Collections.Generic;
using System.Text;
using DrawingScreen.Constant;

namespace DrawingScreen.Messages
{
    public class CDrawingMessage_Pointer: CDrawingMessage
    {
        private int _id = 0;

        public int ID
        {
            get { return _id; }
            set { _id = value; }
        } 

        public override void ReadMessage(libReadWrite.BigEndianReader sr)
        {
            _id = sr.ReadByte();
        }

        public override void WriteMessage(libReadWrite.BigEndianWriter sw)
        {
            throw new NotImplementedException();
        }

        public override libCommonClass.TTMessage Clone()
        {
            return new CDrawingMessage_Pointer();
        }

        public override int GetMessageID()
        {
            return CDrawingMessageKind.POINTER;
        }

        public override string GetMessageName()
        {
            return "CDrawingMessage_Pointer";
        }
    }
}
